package com.king.headline.util.umeng;

import android.content.Context;

import com.umeng.socialize.PlatformConfig;
import com.umeng.socialize.UMShareListener;
import com.umeng.socialize.media.UMEmoji;

/**
 * Created by king on 2016/6/24.
 */
public class UmengUtils {
    private Context mactivity;
    private UMShareListener umShareListener;
    private UMEmoji image;


    public void setShareData(UMEmoji image){
        this.image = image;
    }
    public void setUmShareListener(UMShareListener umShareListener){
        this.umShareListener = umShareListener;
    };
    public void init(){
        PlatformConfig.setWeixin("wx967daebe835fbeac", "5bb696d9ccd75a38c8a0bfe0675559b3");
        //微信 appid appsecret
        PlatformConfig.setSinaWeibo("908113698","d1962c7d5f9d54520e2f5e978a99154a");
        //新浪微博 appkey appsecret
        PlatformConfig.setQQZone("1105484306", "UJIwNwrd96az99x7");
        // QQ和Qzone appid appkey

    }
//    private  void initShare(){
//        new ShareAction(mactivity)
//                .setPlatform(SHARE_MEDIA.SINA)
//                .setCallback(umShareListener)
//                .withText("hello umeng video")
//                .withTargetUrl("http://www.baidu.com")
//                .withMedia(image)
//                .share();
//    }


}
